#include "Common7R3.h"

CCommon7R3::CCommon7R3()
{
	
	m_NtQueryInformationFile = (NtQueryInformationFileProc)GetProcAddress(GetModuleHandleA("ntdll.dll"), "NtQueryInformationFile");
	m_Handle = CreateFileA("C:\\1.txt", FILE_ALL_ACCESS, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

	if ((m_NtQueryInformationFile == NULL) || (m_Handle == INVALID_HANDLE_VALUE))
	{
		::MessageBoxA(NULL, "Get Win7CommonFunc Or Create C:\\1.txt  Error!", NULL, NULL);
	}
}

CCommon7R3::~CCommon7R3()
{

}

void CCommon7R3::SendDate(PVOID buf, DWORD bufLen)
{
	m_NtQueryInformationFile(m_Handle, &m_Io, buf, bufLen, 0x34);	
}


